#ifndef __CRC_H
#define __CRC_H

#include "stm32f10x.h"                  // Device header

union CRC_Value
{
    uint16_t CRC_16;
    uint8_t CRC_8[2];
};
extern union CRC_Value GetCRC;

uint16_t CalculateCRC(uint8_t* data, uint32_t size);

#endif
